package com.main.by.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.main.by.entity.vo.NewsInfoVO;
import com.main.by.entity.vo.SubmitVO;
import com.main.by.entity.vo.TaskVO;

public interface TaskService {
	
	public boolean addTaskInfo(TaskVO taskInfo, HttpServletRequest request, HttpServletResponse response) throws Exception;
	
	public List<TaskVO> findAllTask(HttpServletRequest request) throws Exception;
	
	//根据Id查询
	public TaskVO findTaskById(int taskId) throws Exception;
	
	public boolean deleteTaskById(int taskId) throws Exception;
	
	public boolean saveTaskInfo(TaskVO taskVO) throws Exception;
	
	public boolean addSubmitTaskInfo(SubmitVO submitTaskInfo, HttpServletRequest request, HttpServletResponse response) throws Exception;

	public List<TaskVO> selectTaskByCate(int taskId) throws Exception;
}
